package org.rcy.framework.data.dao;

import org.springframework.core.type.classreading.MetadataReader;
import org.springframework.core.type.classreading.MetadataReaderFactory;
import org.springframework.core.type.filter.TypeFilter;

import java.io.IOException;

public class ExcludeDaoFilter implements TypeFilter {
    private Class<?>[] excludeClass = new Class[]{BaseDao.class};

    public ExcludeDaoFilter() {
    }

    public boolean match(MetadataReader reader, MetadataReaderFactory factory) throws IOException {
        String className = reader.getClassMetadata().getClassName();
        Class[] var4 = this.excludeClass;
        int var5 = var4.length;

        for(int var6 = 0; var6 < var5; ++var6) {
            Class<?> exclude = var4[var6];
            if (className.equals(exclude.getName())) {
                return true;
            }
        }

        return false;
    }
}
